package com.my.study.hutool.core.bean;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author: yidujun
 * @create: 2021/06/30 13:56
 */
public class ExamInfoDict implements Serializable {
    private static final long serialVersionUID = -7976714137691570274L;

    /**
     * 主键, 可当作题号
     */
    private Integer id;
    /**
     * 试题类型 客观题 0主观题 1
     */
    private Integer examType;
    /**
     * 试题是否作答
     */
    private Integer answerIs;

    public Integer getId() {
        return id;
    }
    public Integer getId(Integer defaultValue) {
        return this.id == null ? defaultValue : this.id;
    }
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getExamType() {
        return examType;
    }
    public void setExamType(Integer examType) {
        this.examType = examType;
    }

    public Integer getAnswerIs() {
        return answerIs;
    }
    public void setAnswerIs(Integer answerIs) {
        this.answerIs = answerIs;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ExamInfoDict that = (ExamInfoDict) o;
        return Objects.equals(id, that.id) && Objects.equals(examType, that.examType) && Objects.equals(answerIs, that.answerIs);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, examType, answerIs);
    }

    @Override
    public String toString() {
        return "ExamInfoDict{" + "id=" + id + ", examType=" + examType + ", answerIs=" + answerIs + '}';
    }
}
